use std::env;
use std::path::PathBuf;

#[cfg(not(debug_assertions))]
pub fn get_path() -> PathBuf {
    let path = env::current_exe().unwrap().parent().unwrap().to_path_buf();
    return path;
}

#[cfg(debug_assertions)]
pub fn get_path() -> PathBuf {
    let path = env::current_dir().unwrap();
    return path;
}